this js code is run in 31/2/2022
var today = new Date();
console.log(today);
var start = Date(2021, 5, 30);
console.log(start);
however, when I open the console, it showed both day are the current time, 31/5/2022 8PM, ....
But when I add new before
var today = new Date();
console.log(today);
var start = new Date(2021, 5, 30);
console.log(start);
it works.
Why did this happen?
Thanks